main: Fix subcommand usage output
authorMatthew Leeds <matthew.leeds@endlessm.com>
Fri, 4 Aug 2017 20:18:40 +0000 (13:18 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 5 Aug 2017 00:55:36 +0000 (00:55 +0000)
commit5682f4cc041d1b53448739f8656ed6fd120e7dbe
tree782103480274c52984bfd8bfc028c53c58909148
parent4e068f3924f57f7a4a26a91aab38c725520251fe
main: Fix subcommand usage output

This commit sets prgname correctly so that the "ostree subcommand
--help" output prints the subcommand rather than just "ostree".

This was removed in commit f0519e541f29 because it tripped the thread
sanitizer, but it's being added back conditionally so most users who
don't compile with -fsanitize=adress see proper help output.

Closes: #1054
Approved by: cgwalters
configure.ac
src/ostree/ot-main.c